<template>
    <div class="viewFeedback">
        <a-modal
            v-drag-modal
            class="viewFeedbackDialog"
            title="查看反馈"
            :width="650"
            :visible="visible"
            @cancel="handleCancel"
            :maskClosable="false"
        >
            <template slot="footer">
                <a-button style="margin-top:0;" type="primary" html-type="submit" @click="onSubmit">
                    保存
                </a-button>
            </template>
            这里是内容区
        </a-modal>
    </div>
</template>
<script>
export default {
    props: ['showFlag'],
    data() {
        return {
            visible: false
        }
    },
    watch: {
        showFlag(next, prev) {
            if (next != prev) {
                var self = this;
                self.visible = !self.visible;
            }
        }
    },
    methods: {
        handleCancel() {
            this.visible = false;
        },
        onSubmit() {

        },
    },
}
</script>
<style lang="less" scoped></style>
